package com.star.carserviceapi.domain;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

public class BannerInfo implements Serializable {

	private static final long serialVersionUID = -6195210462393948580L;

	private String mTitle = "";

	private String mUrl = "";

	@SerializedName("url")
	private String mImgUrl = "";

	private int mImgResId = 0;

	public int getImgResId() {
		return mImgResId;
	}

	public void setImgResId(int imgResId) {
		mImgResId = imgResId;
	}

	public String getImgUrl() {
		return mImgUrl;
	}

	public void setImgUrl(String imgUrl) {
		mImgUrl = imgUrl;
	}

	public String getTitle() {
		return mTitle;
	}

	public void setTitle(String title) {
		mTitle = title;
	}

	public String getUrl() {
		return mUrl;
	}

	public void setUrl(String url) {
		mUrl = url;
	}

	public BannerInfo(){
		
	}
	
	public BannerInfo(String title, String url, String imgUrl) {

		mTitle = title;
		mUrl = url;
		mImgUrl = imgUrl;
	}

	public BannerInfo(int imgResId) {
		mImgResId = imgResId;
	}

	public boolean isLocalRes() {
		return mImgResId != 0;
	}

}
